import { App } from 'vue';
import BcDialogForm from '@/components/BcDialogForm/index.vue';
import BcDigitalAnimation from '@/components/BcDigitalAnimation/index.vue';
import BcForm from '@/components/BcForm/index.vue';
import BcTable from '@/components/BcTable/index.vue';
import IconSvg from '@/components/IconSvg/index.vue';
import HasPermi from '@/components/HasPermi/index.vue';
import HasRole from '@/components/HasRole/index.vue';
import { createInstance } from '@/utils/mountComponent';

export default {
	install(Vue: App) {
		Vue.component('BcDialogForm', BcDialogForm);
		Vue.component('BcDigitalAnimation', BcDigitalAnimation);
		Vue.component('BcForm', BcForm);
		Vue.component('BcTable', BcTable);
		Vue.component('IconSvg', IconSvg);
		Vue.component('HasPermi', HasPermi);
		Vue.component('HasRole', HasRole);

		Vue.config.globalProperties.$bcDialogForm = createInstance(BcDialogForm);
	},
};
